home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / MFC_Samples / palette / dibdoc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-02-19  |  1.3 KB  |  60 lines

  1. // dibdoc.h : interface of the CDibDoc class
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1999 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. #include "dibapi.h"
  14.  
  15. class CDibDoc : public CDocument
  16. {
  17. protected: // create from serialization only
  18.     CDibDoc();
  19.     DECLARE_DYNCREATE(CDibDoc)
  20.  
  21. // Attributes
  22. public:
  23.     HDIB GetHDIB() const
  24.         { return m_hDIB; }
  25.     CPalette* GetDocPalette() const
  26.         { return m_palDIB; }
  27.     CSize GetDocSize() const
  28.         { return m_sizeDoc; }
  29.  
  30. // Operations
  31. public:
  32.     void ReplaceHDIB(HDIB hDIB);
  33.     void InitDIBData();
  34.  
  35.     BOOL OnOpenFile(LPCTSTR lpszPathName);
  36.  
  37. // Implementation
  38. protected:
  39.     virtual ~CDibDoc();
  40.  
  41. protected:
  42.     HDIB m_hDIB;
  43.     CPalette* m_palDIB;
  44.     CSize m_sizeDoc;
  45.  
  46. #ifdef _DEBUG
  47.     virtual void AssertValid() const;
  48.     virtual void Dump(CDumpContext& dc) const;
  49. #endif
  50. protected:
  51.  
  52. // Generated message map functions
  53. protected:
  54.     //{{AFX_MSG(CDibDoc)
  55.     //}}AFX_MSG
  56.     DECLARE_MESSAGE_MAP()
  57. };
  58.  
  59. /////////////////////////////////////////////////////////////////////////////
  60.